﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using ST.Torch.WebApi.Core.Extensions;

namespace ST.Torch.WebApi.Web.Entry.Areas.DaTi.Controllers
{
	[Area("DaTi")]
    [AppAuthorize]
    public class D_GiftController : Controller
	{
		public IActionResult Index()
		{
			return View();
		}
		public IActionResult AddOrEdit()
		{
			return View();
		}
        [HttpPost]
        public async Task<ActionResult> RenderViewToString([FromForm] string viewName, [FromForm] List<string> model = null)
        {

            string HtmlStr = await this.RenderViewToStringAsync(viewName, (object)model);
            return Content(HtmlStr);
        }

    }
}
